/*  1:   */ package org.intellij.images.options.impl;
/*  2:   */ 
/*  3:   */

import com.intellij.openapi.components.PersistentStateComponent;
import com.intellij.openapi.components.RoamingType;
import com.intellij.openapi.components.State;
import com.intellij.openapi.util.InvalidDataException;
import com.intellij.openapi.util.WriteExternalException;
import org.intellij.images.options.Options;
import org.intellij.images.options.OptionsManager;
import org.jdom.Element;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */
/* 11:   */ 
/* 12:   */ @State(name="Images.OptionsManager", roamingType=RoamingType.DISABLED, storages={@com.intellij.openapi.components.Storage(file="$APP_CONFIG$/images.support.xml")})
/* 13:   */ final class OptionsManagerImpl
/* 14:   */   extends OptionsManager
/* 15:   */   implements PersistentStateComponent<Element>
/* 16:   */ {
/* 17:38 */   private final OptionsImpl a = new OptionsImpl();
/* 18:   */   
/* 19:   */   public Options getOptions()
/* 20:   */   {
/* 21:42 */     return this.a;
/* 22:   */   }
/* 23:   */   
/* 24:   */   public Element getState()
/* 25:   */   {
/* 26:47 */     Element localElement = new Element("state");
/* 27:   */     try
/* 28:   */     {
/* 29:49 */       this.a.writeExternal(localElement);
/* 30:   */     }
/* 31:   */     catch (WriteExternalException localWriteExternalException)
/* 32:   */     {
/* 33:52 */       throw new RuntimeException(localWriteExternalException);
/* 34:   */     }
/* 35:54 */     return localElement;
/* 36:   */   }
/* 37:   */   
/* 38:   */   public void loadState(Element paramElement)
/* 39:   */   {
/* 40:   */     try
/* 41:   */     {
/* 42:60 */       this.a.readExternal(paramElement);
/* 43:   */     }
/* 44:   */     catch (InvalidDataException localInvalidDataException)
/* 45:   */     {
/* 46:63 */       throw new RuntimeException(localInvalidDataException);
/* 47:   */     }
/* 48:   */   }
/* 49:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.images.options.impl.OptionsManagerImpl

 * JD-Core Version:    0.7.0.1

 */